package org.example.struct.array;

import java.util.Arrays;

/**
 * @author liyishan
 * @date 2024/2/20 09:38
 * @apiNote
 */

public class LCR159InventoryManagement {

    public int[] inventoryManagement(int[] stock, int cnt) {
        Arrays.sort(stock);
        int[] ans = new int[cnt];
        for(int i = 0; i < cnt; i++){
            ans[i] = stock[i];
        }
        return ans;
    }
}
